package cn.john.hrm.client;

import cn.john.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "SYSTEM-SERVER",fallbackFactory = UserInfoFallbackFactory.class)
@RequestMapping("/employee")
public interface UserInfoFeignClient {
    @PostMapping("/userInfo/{id}")
    AjaxResult getUserInfo(@PathVariable("id")Long loginId);
}
